package chapter5.homework;

/**
 * 作业3： 使用 static 演示静态变量和静态方法（类方法），计算回声测距的程序
 *
 * @author 张玮婷 20245080902061
 */

public class EchoRanging {
    public static final double SPEED_OF_SOUND = 343;

    public static double calcDistance(double Time) {
        double echoTime = 61.0;
        return (SPEED_OF_SOUND * echoTime) / 2;
    }
}
